<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns:ui="http://xmlns.jcp.org/jsf/facelets"
                template="./template/HomemasterAd.xhtml"
                xmlns:h="http://xmlns.jcp.org/jsf/html"
                xmlns:p="http://primefaces.org/ui">

    <ui:define name="content_top">
        Domain
    </ui:define>

    <ui:define name="content">
        <h3 style="color: blue; ">Add</h3>
        <p style="color: red;">#{domainManagedBean.message}</p>
        <h:form prependId="false">
            <p:panelGrid columns="2">
                <p:outputLabel value="Name"></p:outputLabel>
                <p:inputText value="#{domainManagedBean.domain.name}" style="width: 95%" maxlength="255"></p:inputText>

                <p:outputLabel value="Description"></p:outputLabel>
                <p:editor value="#{domainManagedBean.domain.descriptions}"/>

                <p:outputLabel value=""></p:outputLabel>
                <p:row>
                    <p:column colspan="2">
                        <p:commandButton value="Save" action="#{domainManagedBean.addDomain()}" ajax="false"></p:commandButton>
                        &nbsp;
                        <p:commandButton value="Clear" action="#{domainManagedBean.clear()}" ajax="false"/>
                    </p:column>
                </p:row>
                
            </p:panelGrid>
        </h:form>
    </ui:define>

</ui:composition>
